<template>
  <div class="home">
    <el-row class="mb-4">
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>欢迎使用 Vue 3 + Vite + Element Plus</span>
        </div>
      </template>
      <div class="text item text-2xl font-bold">
        这是一个使用 Vue 3 + Vite + Element Plus 构建的示例项目
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
// 主页组件 - 同步加载，没有异步操作
</script>

<style scoped>
.home {
  padding: 20px;
}

.mb-4 {
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
